<SCRIPT type="text/javascript">
	var setting = {
		data: {
			simpleData: {
				enable: true
			}
		},
		callback: {
			//onCollapse: alert("up"),
			onExpand: function(){
				if (treeNiceScroll) {
					treeNiceScroll.resize();
				}
			}
		},
		view: {
			showLine: false
		}
	};
	var zNodes1 =[
		{ id:"0", pId:0, name:"系统角色", open:true, icon:"/assets/images/icon-file-closed.png",url:"/${orgi}/manage/role/index.html",target:"_self"}
		
		<#if groupList??>
			<#list	groupList as group>
				,{ id:"${group.id!''}", pId:"${group.parentid}",name:"${group.name!''}",icon:"/assets/images/icon-file-closed.png" , url:"/${orgi}/manage/role/list/0/${group.id!''}.html",target:"_self"}
			</#list>
		</#if>
		<#if roleList??>
		<#list roleList as role>
		,{ id:"${role.id!''}", pId:"${role.groupid!''}", name:"${role.name!''}", icon:"/assets/images/group_blue.png" , url:"/${orgi}/manage/role/list/${role.id!''}/${groupid!''}.html",target:"_self"}
		</#list>
		</#if>	
	];
	$(document).ready(function(){
		var ztree = $.fn.zTree.init($(document.getElementById("zTree_adminLIst")), setting, zNodes1);
		ztree.selectNode(ztree.getNodeByParam("id", "<#if roleid=='0'>${groupid!''}<#else>${roleid!''}</#if>", null));
	});
</SCRIPT>

<div class="rs_layout_top breadCrumbWrap">
	<div class="breadCrumbStart">您当前的位置是在：</div>
	<ul class="breadCrumb">
		<li class="bc_ithems"><a href="/${orgi}/manage/task/taskpassing.html">系统管理</a></li>
		<li class="bc_ithems"><a href="/${orgi}/manage/role/index.html">权限系统</a></li>
	</ul>
	<ul class="controlButtons">
		<#if roleid=='0'>
		<li class="icons_group_add" data-toggle="ajax" id="groupadd" href="/${orgi}/manage/role/${groupid}/groupadd.html" data-width="480" title="创建角色分组"></li>
		<#if groupid!='0'>
		<li class="icons_group_edit" data-toggle="ajax" id="groupedit" href="/${orgi}/manage/role/${groupid}/groupedit.html" data-width="480" title="修改分组"></li>
		<li class="icons_group_delete" id="organdelo" onclick="art.confirm('您确定要删除此分组吗？' , function(){location.href='/${orgi}/manage/role/${groupid}/groupdelo.html'} , function(){})" title="删除分组"></li>
		</#if>
		<li title="创建角色" data-width="480" href="/${orgi}/manage/role/${groupid!''}/roleadd.html" id="roleadd" data-toggle="ajax" class="cbtn-icon-79"></li>
		</#if>
		<#if roleid!='0'>
		 <li title="修改角色" data-width="480" href="/${orgi}/manage/role/roledit/${roleid}.html" id="organedit" data-toggle="ajax" class="cbtn-icon-80"></li>
		 <li title="删除角色" onclick="art.confirm('您确定要删除该角色吗？' , function(){location.href='/${orgi}/manage/role/roledelo/${roleid}.html'} , function(){})" id="organdelo" class="cbtn-icon-81"></li>
		 <li title="导入用户" data-width="750" href="/${orgi}/manage/role/${roleid}/userimport.html" id="newreport" data-toggle="ajax" class="cbtn-icon-32"></li>
		</#if>

		
		
	</ul>
</div>
<div class="rs_layout_left" resizable="true" style="width:230px;">
	<div class="lftTreeWrap">
		<div class="ztree" id="zTree_adminLIst"></div>
	</div>
</div>